/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"54E6542F-A7D3-4049-816F-D36237C40D8A"}
 */
function alta(event) {
	if (controller.readOnly == true)
		globals.gDialog('Error','Debe estar en modo edicion','OK','CerrarForm')
	else
		lista_to_lista_detalle.newRecord()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"443F9DB3-4B8F-43D3-9476-1E879E3CBAF7"}
 */
function eliminar(event) {
	lista_to_lista_detalle.deleteRecord()
}
